import 'package:boss/ui/widget/image/base_image.dart';
import 'package:hi_common/hi_common.dart';
import 'package:flutter/material.dart';

class Radio extends StatelessWidget {
  final String unSelectedIcon;
  final String selectedIcon;
  final bool isSelected;
  final double width;
  final double height;

  const Radio({
    Key key,
    this.unSelectedIcon = 'assets/image/unselect_icon.png',
    this.selectedIcon = 'assets/image/select_blue_icon.png',
    this.isSelected = false,
    this.width,
    this.height,
  }) : super(key: key);

  String get icon => isSelected ? selectedIcon : unSelectedIcon;

  @override
  Widget build(BuildContext context) {
    return BaseImage(
      icon,
      width: width ?? 40.w,
      height: height ?? 40.w,
    );
  }
}
